package thread.optimisticlock;

public class Bean {

	private volatile int state;

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}
	
	public void addState(){
		++this.state;
	}
	
	public void downState(){
		--this.state;
	}
}
